var camera1 : Camera;
var camera2 : Camera;
var camera3 : Camera;
static var startCamera : int;
startCamera	= 1;

function Start()
{
	// Check for null reference of camera3
	// Required because there are only TWO camera's in Menu Scene
	// Dynamically add an additional camera to the scene temporarily
	// ISSUE: If player presses "C" in Menu Scene, the application will crash
	if(camera3.Equals(null))
		camera3 = gameObject.AddComponent(Camera);

	camera1.enabled = true;
	camera2.enabled = false;
	camera3.enabled = false;
		
	startCamera = 1;
//	Debug.Log("Start with Camera 1");
}

function Update()
{
	// Check for user input to change view camera
	if(Input.GetKeyDown("z") && (startCamera != 1))	// 2D Camera
	{
		startCamera = 1;
		camera1.enabled = true;
		camera2.enabled = false;
		camera3.enabled	= false;
//		Debug.Log("Change to Camera 1");
	}
	if(Input.GetKeyDown("x") && (startCamera != 2)) // 1-P Camera
	{
		startCamera = 2;
		camera1.enabled = false;
		camera2.enabled = true;
		camera3.enabled = false;
//		Debug.Log("Change to Camera 2");
	}
	if(Input.GetKeyDown("c") && (startCamera != 3))	// 3-P Camera
	{
		startCamera = 3;
		camera1.enabled = false;
		camera2.enabled = false;
		camera3.enabled = true;
//		Debug.Log("Change to Camera 3");
	}
	
	// Exit application
	if(Input.GetKeyDown(KeyCode.Escape))
		Application.Quit();
}